package PTA.javaB;

import java.util.Scanner;

class Employee{
    private int id;
    private String name;
    private int age;
    private String position;
    private double salary;
    Employee(){}
    Employee(int id,String name,int age,String position,double salary){
        this.id=id;
        this.name=name;
        this.age=age;
        this.position=position;
        this.salary=salary;
    }
    public void setId(int id){
        this.id=id;
    }
    public int getId(){
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Employee[" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", position='" + position + '\'' +
                ", salary=" + salary +
                ']';
    }
}


public class ex25 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

int num = sc.nextInt();
Employee arr[]= new Employee[num];
try{
for(int i=0;i<num;i++){

arr[i] =  new Employee(sc.nextInt(),sc.nextLine(),sc.nextInt(),sc.nextLine(),sc.nextDouble());//生成列表
}


}catch(Exception e){
    e.printStackTrace();//打印异常信息
}



    }
}
